package service

import (
	"errors"
	"github.com/gin-gonic/gin"
	"io/ioutil"
)

// GinIndexHandler 主页
func GinIndexHandler(c *gin.Context) {
	b, err := ioutil.ReadFile("./index.html")
	if err != nil {
		c.Error(errors.New("内部错误"))
		return
	}
	c.Data(0, "text/html", b)
}
